#ifndef  __RADAR_IPC_COM_THREAD_INCLUDE__
#define  __RADAR_IPC_COM_THREAD_INCLUDE__
#include <QThread>
#include <QUdpSocket> 
#include "IPC_Radar_Protocol.h"

class RadarIPC_Com_Thread :public QObject {
	Q_OBJECT

public:
	RadarIPC_Com_Thread();
	virtual ~RadarIPC_Com_Thread();
	void run();

signals:
	void RadarCMDNotify(RadarIPCCOM_Protocol_t CMD);

private slots:
	void readPendingDatagrams();
	void onRadarCMD(RadarIPCCOM_Protocol_t CMD);

private:
	void processTheDatagram(QByteArray datagram);
private:
QUdpSocket*	udpSocket;
};


#endif // ! __RADAR_IPC_COM_THREAD_INCLUDE__
